package com.kgc.scd.service;

import com.kgc.scd.service.impl.WebCategoriesInfoServiceImpl;
import com.kgc.scd.service.impl.WebGoodsCommentServiceImpl;
import com.kgc.scd.vo.ShopCategoriesVO;
import com.kgc.scd.vo.ShopCategoryVO;
import com.kgc.scd.vo.ShopGoodsVO;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * Created On : 2022/11/16.
 * <p>
 * Author : 22166
 * <p>
 * Description: WebCategoriesInfoService
 */
@FeignClient(value = "wyyxmall-cjw-server",fallback = WebCategoriesInfoServiceImpl.class)
public interface WebCategoriesInfoService {



    /**
     * @author : 22166
     * @date   : 2022/11/17
     * @param  : [userId]
     * @return : int
     * @description : 根据购物车表查询购物车数量
     */
    @GetMapping({"/getShopCartTotal"})
    int getShopCartTotal(@RequestParam("userId") String userId);


    /**
     * @author : 22166
     * @date   : 2022/11/16
     * @param  : []
     * @return : java.util.List<com.kgc.scd.bean.ShopCategories>
     * @description : 查询商品总分类列表
     */
    @GetMapping("/shopCategoriesVOList")
    List<ShopCategoriesVO> categoriesList (@RequestParam("sumCategory") Integer sumCategory);


    /**
     * @author : 22166
     * @date   : 2022/11/16
     * @param  : []
     * @return : java.util.List<com.kgc.scd.bean.ShopCategory>
     * @description : 查询商品分类
     */
    @GetMapping("/shopCategoryList")
    List<ShopCategoryVO> categoryList(@RequestParam("sumCategory") Integer sumCategory);

    /**
     * @author : 22166
     * @date   : 2022/11/16
     * @param  : [categoryId]
     * @return : java.util.List<com.kgc.scd.vo.ShopGoodsVO>
     * @description :在shop_goods表根据category_id查询
     */
    @GetMapping("/shopGoodsVOList")
    List<ShopGoodsVO> shopGoodsVO(@RequestParam("categoryId") String categoryId);
}
